FullKVCache

interface FullKVCache<K, V> : KVCache<K, V>

This interface declares that current type of KVCache will contains all the data all the time of its life

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend fun clear()
Link copied to clipboard
abstract suspend fun contains(key: K): Boolean
Link copied to clipboard
abstract suspend fun count(): Long
Link copied to clipboard
abstract suspend fun get(k: K): V?
Link copied to clipboard
abstract suspend fun keys(pagination: Pagination, reversed: Boolean = false): PaginationResult<K>
abstract suspend fun keys(    v: V,     pagination: Pagination,     reversed: Boolean = false): PaginationResult<K>
Link copied to clipboard
abstract suspend fun set(toSet: Map<K, V>)
Link copied to clipboard
abstract suspend fun unset(toUnset: List<K>)
Link copied to clipboard
open suspend override fun unsetWithValues(toUnset: List<V>)
Link copied to clipboard
abstract suspend fun values(pagination: Pagination, reversed: Boolean = false): PaginationResult<V>

Properties

Link copied to clipboard
abstract val onNewValue: Flow<Pair<K, V>>
Link copied to clipboard
abstract val onValueRemoved: Flow<K>

Inheritors

SimpleFullKVCache
Link copied to clipboard